2019年1月30日 — After creating a GCP compute engine you don't need to do anything special to get sudo to work from ssh. You obviously need to use the GCP ...
An alternative to connecting to VMs as the root user is to run commands through sudo , which we recommend instead of enabling root login. ... sudo chmod 600 /root ...
The page provides tips on using the sudo command-line utility, managing the sudoers plugin, and preventing or fixing issues that arise. Causes of problems.